;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        "planA": {
            "name":"老年人综合意外险",
            "company":"和泰人寿",
            "year": "56-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "50000",
            "accident_medical": "1000",
            "accident_hospital": "",
            "price": "29.00"
        },
        "planB": {
            "name":"老年人综合意外险",
            "company":"和泰人寿",
            "year": "56-65",
            "days": "1y",
            "people_count": "1",
            "accident_death": "100000",
            "accident_medical": "5000",
            "accident_hospital": "100/天",
            "price": "29.00"
        }
    }
    for(k in plan ){
        data = plan[k]
        mysql.insertData( data )
        
    }
    mysql.close();

}
